home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Waitsome.z / MPI_Waitsome
Encoding:
Text File  |  2002-10-03  |  4.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____WWWWAAAAIIIITTTTSSSSOOOOMMMMEEEE((((3333))))                                                MMMMPPPPIIII____WWWWAAAAIIIITTTTSSSSOOOOMMMMEEEE((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____WWWWaaaaiiiittttssssoooommmmeeee - Waits for specified communications to complete
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      C:
  13.  
  14.           #include <mpi.h>
  15.  
  16.           int MPI_Waitsome( _i_n_c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s, _o_u_t_c_o_u_n_t,
  17.           _a_r_r_a_y__o_f__i_n_d_i_c_e_s, _a_r_r_a_y__o_f__s_t_a_t_u_s_e_s )
  18.           int         _i_n_c_o_u_n_t, *_o_u_t_c_o_u_n_t, _a_r_r_a_y__o_f__i_n_d_i_c_e_s[];
  19.           MPI_Request _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s[];
  20.           MPI_Status  _a_r_r_a_y__o_f__s_t_a_t_u_s_e_s[];
  21.  
  22.  
  23.      C++:
  24.  
  25.           #include <mpi.h>
  26.  
  27.           static int Request::Waitsome(
  28.           int               _i_n_c_o_u_n_t,
  29.           Request           _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s[],
  30.           int               _a_r_r_a_y__o_f__i_n_d_i_c_e_s[])
  31.  
  32.  
  33.      Fortran:
  34.  
  35.           INCLUDE "mpif.h" (or USE MPI)
  36.  
  37.           INTEGER _i_n_c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s(*), _o_u_t_c_o_u_n_t,
  38.           _a_r_r_a_y__o_f__i_n_d_i_c_e_s(*), _a_r_r_a_y__o_f__s_t_a_t_u_s_e_s(MPI_STATUS_SIZE,*),
  39.           _i_e_r_r_o_r
  40.  
  41.           CALL MPI_WAITSOME(_i_n_c_o_u_n_t, _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s(*), _o_u_t_c_o_u_n_t, _a_r_r_a_y__o_f__i_n_d_i_c_e_s(*), _a_r_r_a_y__o_f__s_t_a_t_u_s_e_s(MPI_STATUS_SIZE,*), _i_e_r_r_o_r)
  42.  
  43.  
  44. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  45.      This release implements the MPI 1.2 standard, as documented by the MPI
  46.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  47.      _S_t_a_n_d_a_r_d.
  48.  
  49. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  50.      The MMMMPPPPIIII____WWWWaaaaiiiittttssssoooommmmeeee routine waits for specified communications to complete.
  51.      This routine accepts the following parameters:
  52.  
  53.      _i_n_c_o_u_n_t             Specifies the length of _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s (integer)
  54.  
  55.      _a_r_r_a_y__o_f__r_e_q_u_e_s_t_s   Specifies the array of requests (array of handles)
  56.  
  57.      _o_u_t_c_o_u_n_t            Returns the number of completed requests (integer)
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMPPPPIIII____WWWWAAAAIIIITTTTSSSSOOOOMMMMEEEE((((3333))))                                                MMMMPPPPIIII____WWWWAAAAIIIITTTTSSSSOOOOMMMMEEEE((((3333))))
  71.  
  72.  
  73.  
  74.      _a_r_r_a_y__o_f__i_n_d_i_c_e_s    Returns the array of indices of operations that
  75.                          completed (array of integers)
  76.  
  77.      _a_r_r_a_y__o_f__s_t_a_t_u_s_e_s   Returns the array of status objects for operations
  78.                          that completed (array of status)
  79.  
  80.      _i_e_r_r_o_r              Specifies the return code value for successful
  81.                          completion, which is in MPI_SUCCESS.  MPI_SUCCESS is
  82.                          defined in the mmmmppppiiiiffff....hhhh file.
  83.  
  84. NNNNOOOOTTTTEEEESSSS
  85.      For C, the array of indices are in the range 0 to _i_n_c_o_u_n_t-1.  For
  86.      Fortran, the array of indices are in the range 1 to _i_n_c_o_u_n_t.
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                                                                         PPPPaaaaggggeeee 2222
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.